package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 62536
 * Date: 2023-11-10
 * Time: 11:26
 */
public class Bird extends Animal implements IRun, IFly {
    public Bird(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name +" 正在吃鸟粮");

    }

    @Override
    public void fly() {
        System.out.println(this.name +" 正在用鸟翅膀飞");
    }

    @Override
    public void run() {
        System.out.println(this.name +" 正在用鸟腿跑");
    }
}
